package com.ruoyi.tranShort.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 排班任务对象 short_scheduling_task
 * 
 * @author ruoyi
 * @date 2021-08-17
 */
public class ShortSchedulingTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 任务执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务执行时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskExecuteTime;

    /** 调用函数 */
    @Excel(name = "调用函数")
    private String taskExecuteFunction;

    /** 任务状态0:未执行 1：已执行，2：执行失败 */
    @Excel(name = "任务状态0:未执行 1：已执行，2：执行失败")
    private Long taskStatus;
    /**
     * 排班id
     */
    private Long schedulingId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setTaskName(String taskName)
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setTaskExecuteTime(Date taskExecuteTime) 
    {
        this.taskExecuteTime = taskExecuteTime;
    }

    public Date getTaskExecuteTime() 
    {
        return taskExecuteTime;
    }
    public void setTaskExecuteFunction(String taskExecuteFunction) 
    {
        this.taskExecuteFunction = taskExecuteFunction;
    }

    public String getTaskExecuteFunction() 
    {
        return taskExecuteFunction;
    }
    public void setTaskStatus(Long taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public Long getTaskStatus() 
    {
        return taskStatus;
    }

    public Long getSchedulingId() {
        return schedulingId;
    }

    public void setSchedulingId(Long schedulingId) {
        this.schedulingId = schedulingId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskName", getTaskName())
            .append("taskExecuteTime", getTaskExecuteTime())
            .append("taskExecuteFunction", getTaskExecuteFunction())
            .append("taskStatus", getTaskStatus())
            .append("createTime", getCreateTime())
            .toString();
    }
}
